package com.shop.front.vo.system;


import com.alibaba.fastjson.annotation.JSONField;
import com.shop.jpa.domain.BaseDomain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.io.Serializable;

@ApiModel("SystemCitySimpleVo 城市表（简版）")
@Data
@Entity
public class SystemCitySimpleVo extends BaseDomain implements Serializable {

    @Id
    @ApiModelProperty(value = "id", hidden = true)
    @Column(name = "id")
    @JSONField(serialize=false)
    private Long id;

    /**
	 * 城市id
	 */
	@Column(name = "city_id")
    @ApiModelProperty("城市id")
    private Integer cityId;

    /**
     * 省市级别
     */
    @Column(name = "level")
    @ApiModelProperty("省市级别")
    private Integer level;

    /**
     * 父级id
     */
    @Column(name = "parent_id")
    @ApiModelProperty("父级id")
    private Integer parentId;

    /**
     * 区号
     */
    @Column(name = "area_code")
    @ApiModelProperty("区号")
    private String areaCode;

    /**
     * 名称
     */
    @Column(name = "name")
    @ApiModelProperty("名称")
    private String name;
}